package com.stormrage.entity.exam.req;

import java.io.Serializable;

public class ExmExamReq implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -989315331635495476L;

	// ------------------------------- Fields -------------------------------

	private Integer stuId;

	private Integer termId;

	private Integer relateId;

	private Integer relateType;

	private Integer type;

	private Integer count;

	// ------------------------------- Fields -------------------------------

	public ExmExamReq() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getStuId() {
		return stuId;
	}

	public void setStuId(Integer stuId) {
		this.stuId = stuId;
	}

	public Integer getTermId() {
		return termId;
	}

	public void setTermId(Integer termId) {
		this.termId = termId;
	}

	public Integer getRelateId() {
		return relateId;
	}

	public void setRelateId(Integer relateId) {
		this.relateId = relateId;
	}

	public Integer getRelateType() {
		return relateType;
	}

	public void setRelateType(Integer relateType) {
		this.relateType = relateType;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	// ------------------------------- Fields -------------------------------

	public static ExmExamReq instance(ExmExamReq entity, Integer type, Integer count) {
		entity.setType(type);
		entity.setCount(count);
		return entity;
	}

	public static ExmExamReq instance(Integer termId, Integer relateId, Integer relateType,Integer type) {
		ExmExamReq entity = new ExmExamReq();
		entity.setTermId(termId);
		entity.setRelateId(relateId);
		entity.setRelateType(relateType);
		entity.setType(type);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : stuId - " + stuId + " termId - " + termId + " relateId - " + relateId
				+ " relateType - " + relateType + " type - " + type;
	}

}
